import request from '@/utils/request'

// 查询包装类型列表
export function listPackType(query) {
  return request({
    url: '/source/packType/list',
    method: 'get',
    params: query
  })
}

// 查询包装类型详细
export function getPackType(id) {
  return request({
    url: '/source/packType/' + id,
    method: 'get'
  })
}

// 新增包装类型
export function addPackType(data) {
  return request({
    url: '/source/packType',
    method: 'post',
    data: data
  })
}

// 修改包装类型
export function updatePackType(data) {
  return request({
    url: '/source/packType',
    method: 'put',
    data: data
  })
}

// 删除包装类型
export function delPackType(id) {
  return request({
    url: '/source/packType/' + id,
    method: 'delete'
  })
}
